package com.kj.tms.common.utils.calx.sheet;

import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: demo
 * @Package: com.hongtu.tms.ledger.calx.factory.sheet
 * @ClassName: DefaultConfig
 * @Description: [默认配置类]
 * @Author: [zhuyongjie]
 * @CreateDate: 2018/4/19 9:36
 * @UpdateUser: []
 * @UpdateDate: 2018/4/19 9:36
 * @UpdateRemark: []
 * @Version: 1.0
 * Copyright: 北京宏图天安 Copyright (c) 2018
 */
public class DefaultConfig {
    private Map<String,Object> config;

    public DefaultConfig() {
        initConfig();
    }

    private void initConfig() {
        this.config = new HashMap<String,Object>();
        //是否自动计算
        this.config.put("autoCalculate",true);
        this.config.put("defaultFormat",true);
        //循环依赖检查
        this.config.put("checkCircularReference",true);
    }

    public Map<String, Object> getConfig() {
        return config;
    }

    public void setConfig(Map<String, Object> config) {
        this.config = config;
    }
}
